import request from "@/utils/request";
//pingpong流水明细列表
export function getPingpongList(params) {
  return request({
    url: "/capitalFlow/pingpong",
    method: "get",
    params,
  });
}

//pingpong流水明细新增
export function addPingpong(data) {
  return request({
    url: "/capitalFlow/pingpong",
    method: "post",
    data,
  });
}
//pingpong流水明细编辑
export function editPingpong(data) {
  return request({
    url: `/capitalFlow/pingpong/${data.id}`,
    method: "put",
    data,
  });
}
//pingpong流水明细删除
export function deletePingpong(data) {
  return request({
    url: `/capitalFlow/pingpong/${data.id}`,
    method: "delete",
    data,
  });
}
//万里汇流水明细列表
export function getWorldFirstList(params) {
  return request({
    url: "/capitalFlow/worldFirst",
    method: "get",
    params,
  });
}
//万里汇流水明细导出
export function exportWorldFirst(data) {
  return request({
    url: "/capitalFlow/worldFirst/export/all",
    method: "patch",
    data,
  });
}

//连连流水明细列表
export function getLianlianList(params) {
  return request({
    url: "/capitalFlow/lianlian",
    method: "get",
    params,
  });
}
//连连流水明细导出
export function exporLianlian(data) {
  return request({
    url: "/capitalFlow/lianlian/export/all",
    method: "patch",
    data,
  });
}

//空中云汇流水明细列表
export function getAirwallexList(params) {
  return request({
    url: "/capitalFlow/airwallex",
    method: "get",
    params,
  });
}
//空中云汇流水明细导出
export function exporAirwallex(data) {
  return request({
    url: "/capitalFlow/airwallex/export/all",
    method: "patch",
    data,
  });
}

//P卡列表
export function getPayoneerList(params) {
  return request({
    url: "/capitalFlow/payoneer",
    method: "get",
    params,
  });
}
//P卡流水明细导出
export function exporPayoneer(data) {
  return request({
    url: "/capitalFlow/payoneer/export/all",
    method: "patch",
    data,
  });
}
//P卡流水明细概览
export function overflowPayoneer(params) {
  return request({
    url: "/capitalFlow/payoneer/overflow",
    method: "get",
    params,
  });
}

//万里汇流水明细概览
export function overflowWorldFirst(params) {
  return request({
    url: "/capitalFlow/worldFirst/overflow",
    method: "get",
    params,
  });
}

//pingpong流水明细概览
export function overflowPingpong(params) {
  return request({
    url: "/capitalFlow/pingpong/overflow",
    method: "get",
    params,
  });
}
//连连流水明细概览
export function overflowLianlian(params) {
  return request({
    url: "/capitalFlow/lianlian/overflow",
    method: "get",
    params,
  });
}

//空中云汇流水明细概览
export function overflowAirwallex(params) {
  return request({
    url: "/capitalFlow/airwallex/overview",
    method: "get",
    params,
  });
}
